package com.qiyuesuo.service;

import com.qiyuesuo.entity.MyFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface FileService {

    //文件上传接口
    String upload(MultipartFile file);
    //文件下载接口
    void download(String fileId, HttpServletResponse response);
    //文件分页接口（返回元数据信息）
    MyFile getFileInfo(String fileId);

}
